package com.bigshen.springcloud.orderserviceprovider;

import org.springframework.context.SmartLifecycle;
import org.springframework.stereotype.Component;

/**
 * Spring容器加载完所有的Bean并且初始化完之后，会进入start
 */
@Component
public class TestSmartLifeCycle implements SmartLifecycle {

    @Override
    public void start() {
        System.out.println("-------------------   Spring all bean is init, in start()");
    }

    @Override
    public void stop() {

    }

    @Override
    public boolean isRunning() {
        return false;
    }

}
